<?php
session_start();
include_once 'recursos/config.php';
    $cfg = new configuracion();
    
$dominio = $cfg->getG2uDominio()."/";


include_once 'recursos/isMobile.php';

$isMobile = false;
$_REQUEST["limit"] = $cfg->getNewsMaxComment();

if (isMobile()) {
    $isMobile = true;
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <title> :: Gift 2 You :: <?=$_SESSION["g2uUserName"]?></title>
        
        <link rel="shortcut icon" type="image/ico" href="images/vineta-globo.png" />
        <link type="text/css" href="css/g2u.css" rel="stylesheet"  media="screen" />
        <link type="text/css" href="css/tipsy.css" rel="stylesheet"  media="screen" />
        
        <!--SCROLL-->
        <link type="text/css" href="css/jquery.mCustomScrollbar.css" rel="stylesheet"  media="screen" />
        
        <link type="text/css" href="css/gallery.css" rel="stylesheet"  media="screen" />

        <link type="text/css" href="<?=$dominio?>css/jquery-ui.css" rel="stylesheet"  media="screen" />

        <script lang="javascript" type="text/javascript" src="<?=$dominio?>js/jquery-1.9.1.js"></script>
        <script lang="javascript" type="text/javascript" src="js/g2u.js"></script>
        <script lang="javascript" type="text/javascript" src="js/tipsy.js"></script>

        <script lang="javascript" type="text/javascript" src="<?=$dominio?>js/jquery-ui.js"></script>
        
        <!-- SCROLL -->
        <script lang="javascript" type="text/javascript" src="js/jquery.mCustomScrollbar.js"></script>
        <script>
            $(window).ready(function(){
                $("#newsInnerBody").mCustomScrollbar({
                    theme:"dark"
                });
                
                /*$("span").click(function(){
                    $.post('sendUserPhotoLike', { id: $(this).attr("rel") }, function(data){
                        $("#wishHeadLike").html(data);
                     });
                });*/

            });
        </script>
    </head>
    <body>
        <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; border-color: lightgray;" border="0">
            <tr>
                <td style="width: 20%; vertical-align: top;  ">
                    <div>
                        <center>
                            <img src="images/logo.png"/>
                        </center>
                    </div>

                    <div>
                        <center>
                            <img id="ppicPortal" src="<?=$_SESSION["g2uProfilePic"]?>" />
                            <img src="images/png/salir.png" style="cursor: pointer;" onclick="logOut();"  width="18px" />
                            <br/>        
                            <?=$_SESSION["g2uFirstName"]?>
                        </center>
                    </div>
                    
                    <div id="menu">
                        <? include_once 'menu.php'; ?>
                    </div>
                    
                </td>
                <td style="width: 80%; vertical-align: top; padding-right: 50px; " >
                    
                    <div id="contentBody">
                        
                        <div id="newsHead">
                            Noticias
                        </div>
                        
                        <div id="newsBody">
                            <table style="width: 100%">
                                <tr>
                                    <td width="50%">
                                        <div id="newsInnerBody" style="height: 450px; overflow: auto;" >
                                            <div id="news_list">
                                                <? include_once 'vista/vista.news_list.php'; ?>
                                            </div>
                                        </div>
                                    </td>
                                    <? if(!$isMobile && 1==2){ ?>
                                    <td width="50%">
                                        <div id="newsEventInnerBody" style="height: 450px; overflow: auto;" >
                                            <div id="news_event_list">
                                                <? include_once 'vista/vista.news_event_list.php'; ?>
                                            </div>
                                        </div>
                                    </td>
                                    <? } ?>
                                </tr>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
        
        <div id="photo_preview" style="display:none">
            <div class="photo_wrp" id="photo_wrp"></div>
        </div>
        
    </body>
</html>